package java3;    
public class Course {
	public int number;  
	public String site;  
	public String time;  
	public Teacher t;  
	public Course(int number,String site,String time,Teacher t) {
	 setNumber(number);  
     setSite(site);  
     setTime(time);  
     this.t = t;  
 }  
	public void setNumber(int number) {
	 this.number = number;  
 }  
	public void setSite(String site) {
	 this.site = site;  
 }  
	public void setTime(String time) {
	 this.time = time;  
 }  
 public String toString() { 
	 return "课程编号:"+ number +" 课程名称:"+t.TeachLesson+" 地点:"+site+" 时间:"+time;  
 }  
 } 